#include <linux/pid.h>
#include <linux/pid_namespace.h>
#include <linux/errno.h>
#include <linux/stdlib.h>

int alloc_pid(struct pid_namespace *ns,
              pid_t *set_tid, size_t set_tid_size, struct pid **pid_ret)
{
    struct pid *pid;
    struct pid_namespace *tmp;
    int error = -ENOMEM;

    pid = kmalloc(sizeof(*pid), GFP_KERNEL);
    if (!pid)
        return error;

    *pid_ret = pid;

    return error;
}

void free_pid(struct pid *pid)
{

}
